import { createBrowserRouter } from 'react-router-dom';
import Layout from '../pages/layout/Layout';
import Login from '../pages/login/Login';
import AuthGuard from '../components/AuthGuard';

export const router = createBrowserRouter([
    {
        path: '/',
        element: (
            <AuthGuard>
                <Layout />
            </AuthGuard>
        ),
    },
    {
        path: '/login',
        element: <Login />,
    },
])